﻿using System;
using ProjScan.ScanRule.Attr;
using ProjScan.Submodules.Scene_Check;
using ProjScan.Tools;

namespace ProjScan.ScanRule.SceneCheck
{
	// Token: 0x020001AC RID: 428
	[ScenesCheckRuleAttr]
	internal class Scene_NumOfRealtimeShadow : SceneGlobalRule
	{
		// Token: 0x06000E5E RID: 3678 RVA: 0x00041A18 File Offset: 0x0003FC18
		public override void Run()
		{
			bool flag = Singleton<SceneStatisticsCollector>.Instance.HasHighQualityCamera();
			if (flag)
			{
				this.result = ((float)Singleton<SceneStatisticsCollector>.Instance.GetBakeTypeLightCount() >= this.GetThresholds(2f));
			}
			else
			{
				this.result = Singleton<SceneStatisticsCollector>.Instance.GetBakeTypeLightCount();
			}
		}
	}
}
